<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$('#list_mahasiswa').dataTable({
			"sPaginationType":"full_numbers",
			"bStateSave": true
		});
	} );
</script>
<style>
	div#list_mahasiswa_wrapper th{
		background-color: #0066CC;
		color : #fff;
		text-align: center;
	}
	div#list_mahasiswa_wrapper tr.odd{
		background-color: #e0f2be;
	}
	
	div#list_mahasiswa_wrapper tr:hover{
		background-color: chartreuse;
	}
</style>
<center>
    <div class="contentIsi">
		<table align="center" width="850px">
			<tr>
				<td>
					<table id="list_mahasiswa" border="0" width="800">
						<thead>
							<tr>
								<th>NIM</th>
								<th>Nama</th>
								<th>Asal</th>
								<th>Aksi</th>
							</tr>
						</thead>
						<tbody>
							<?php
							for ($i = 0; $i < count($row); $i++) {
								echo '<tr>';
								echo '<td align="center"><a href="' . base_url() . 'admin/ctrl_mahasiswa/profil_mahasiswa/' . $row[$i]['idmhs'] . '">' . $row[$i]['nim'] . '</td>';
								echo '<td>' . ucwords(strtolower($row[$i]['nama'])) . '</td>';
								echo '<td>' . ucwords(strtolower($row[$i]['asal'])) . '</td>';
								echo '
										<td width=150>
											<a onclick="return confirm_message(\'Apakah anda yakin akan menghapus?\')" href="' . base_url() . 'admin/ctrl_mahasiswa/delete_mahasiswa/' . $fakultas . '/' . $row[$i]['idmhs'] . '">Delete</a>
											&nbsp;&nbsp;
											<a href="' . base_url() . 'admin/ctrl_mahasiswa/form_edit/' . $fakultas . '/' . $row[$i]['idmhs']. '">Edit</a>
										</td>
										';
								echo '</tr>';
							}
							?>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<td align="center"><input class="button" type="button" value="Kembali" onclick="window.location='<?php echo base_url() ?>admin/ctrl_mahasiswa/cari'"/></td>
			</tr>
		</table>
	</div>
</center>